import 'dart:convert';

/// lampBrandCode : "01"
/// lampBrandName : null
/// lampTypeId : "0101"
/// lampTypeName : null
/// checkTitle : "123"
/// checkSimpleTxt : "123123"
/// videoUrl : "http://8.142.139.39:8820/AxrLedServer//baseFile/538bc5c7-f84d-4109-99ab-1e8c4f6a2b46.mp4"
/// createTime : 1706167210000
/// creatorId : "1"
/// creatorName : "张三"

VideoBean videoBeanFromJson(String str) => VideoBean.fromJson(json.decode(str));
String videoBeanToJson(VideoBean data) => json.encode(data.toJson());

class VideoBean {
  VideoBean({
    String? lampBrandCode,
    dynamic lampBrandName,
    String? lampTypeId,
    dynamic lampTypeName,
    String? checkTitle,
    String? checkSimpleTxt,
    String? videoUrl,
    num? createTime,
    String? creatorId,
    String? creatorName,
  }) {
    _lampBrandCode = lampBrandCode;
    _lampBrandName = lampBrandName;
    _lampTypeId = lampTypeId;
    _lampTypeName = lampTypeName;
    _checkTitle = checkTitle;
    _checkSimpleTxt = checkSimpleTxt;
    _videoUrl = videoUrl;
    _createTime = createTime;
    _creatorId = creatorId;
    _creatorName = creatorName;
  }

  VideoBean.fromJson(dynamic json) {
    _lampBrandCode = json['lampBrandCode'];
    _lampBrandName = json['lampBrandName'];
    _lampTypeId = json['lampTypeId'];
    _lampTypeName = json['lampTypeName'];
    _checkTitle = json['checkTitle'];
    _checkSimpleTxt = json['checkSimpleTxt'];
    _videoUrl = json['videoUrl'];
    _createTime = json['createTime'];
    _creatorId = json['creatorId'];
    _creatorName = json['creatorName'];
  }
  String? _lampBrandCode;
  dynamic _lampBrandName;
  String? _lampTypeId;
  dynamic _lampTypeName;
  String? _checkTitle;
  String? _checkSimpleTxt;
  String? _videoUrl;
  num? _createTime;
  String? _creatorId;
  String? _creatorName;

  String? get lampBrandCode => _lampBrandCode;
  dynamic get lampBrandName => _lampBrandName;
  String? get lampTypeId => _lampTypeId;
  dynamic get lampTypeName => _lampTypeName;
  String? get checkTitle => _checkTitle;
  String? get checkSimpleTxt => _checkSimpleTxt;
  String? get videoUrl => _videoUrl;
  num? get createTime => _createTime;
  String? get creatorId => _creatorId;
  String? get creatorName => _creatorName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['lampBrandCode'] = _lampBrandCode;
    map['lampBrandName'] = _lampBrandName;
    map['lampTypeId'] = _lampTypeId;
    map['lampTypeName'] = _lampTypeName;
    map['checkTitle'] = _checkTitle;
    map['checkSimpleTxt'] = _checkSimpleTxt;
    map['videoUrl'] = _videoUrl;
    map['createTime'] = _createTime;
    map['creatorId'] = _creatorId;
    map['creatorName'] = _creatorName;
    return map;
  }
}
